package cn.tedu.fresheveryday.mapper;

import cn.tedu.fresheveryday.pojo.entity.Banner;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface BannerMapper {
    /**
     * 查询全部轮播图
     * @return
     */
    @Select("select id, url from banner")
    List<Banner> selectAll();
}